package com.scada.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @author 黄胜
 * 16-10-26 11:24
 * 系统用户角色方法
 *  
 */
@Controller
@RequestMapping("UserRole")
public class UserRoleController extends BaseController{
	
	@RequestMapping(value ="getLoginName",method=RequestMethod.POST)
	@ResponseBody
	public String getUserAdmin(){
		//获得登录名称
		String loginName = getCurrentUser().getLoginName();
		return loginName;
	}

}
